<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>

<html>
 <link type="text/css" rel="stylesheet" href="/stylesheets/landscapes/style.css" />
  <link rel="icon" type="image/ico" href="/images/favicon.ico" />
  <body>

<%
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    if (user != null) {
%>
<title>
 <%= user.getNickname() %> - Home
   </title>
<p>
	<p ALIGN="CENTER">
		<font color = "#3BB9FF">
		<h2 ALIGN="CENTER">	
		Home -  <%= user.getNickname() %></h2>
	</p>
	<h3>
		<br/>
		
		<p align="center">
			<div style="width: 250px; border: 1px solid white; float: left" align="center">
				<a href="/Calendar.jsp"  style="color: #00a000">Visit Calendar</a>
				&nbsp; &nbsp; &nbsp;
			</div>
			
			<div style="width: 250px; border: 1px solid white; float: left" align="center">
				<a href="/Profile.jsp"  style="color: #00a000">Visit your Profile</a>
				&nbsp; &nbsp; &nbsp;
			</div>
			
			<div style="width: 250px; border: 1px solid white; float: left" align="center">
				<a href="/Event-Creation.jsp"  style="color: #00a000">Create an Event</a>
				&nbsp; &nbsp; &nbsp;
			</div>
			
			<div style="width: 350px; border: 1px solid white; float: left" align="center">
				<a href="/Tags.jsp"  style="color: #00a000">View Your List of Selected Tags</a>
				&nbsp; &nbsp; &nbsp;
			</div>
			
			<div style="width: 250px; border: 1px solid white; float: left" align="center">
				<a href="<%= userService.createLogoutURL(request.getRequestURI()) %>" color: #FFFFFF" >Logout from Service</a>
			</div>
		</p>
	
		</h3>
		
</p>
<%
    } else {
%>
<p>Hello!
Please Login with your Google Account here
<a href="<%= userService.createLoginURL(request.getRequestURI()) %>" style="color: #00a000">Login with Google</a>
</p>
<%
    }
%>

  </body>
</html>